<?php
/**
 * GioCMS
 * 
 * LICENSE
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2 
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-2.0.txt
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@ninhgio.com so we can send you a copy immediately.
 * 
 * @copyright	Copyright (c) 2010 Gio CMS (http://www.ninhgio.com)
 * @license		http://www.gnu.org/licenses/gpl-2.0.txt GNU GENERAL PUBLIC LICENSE Version 2
 */
?>
<?php if ($this->articles) : ?>
<div class="ninhgio mb5">
	<div class="news-article-related">
		<h2><?php echo $this->TRANSLATOR->widget('title'); ?></h2>
	    <ul>
		    <?php foreach ($this->articles as $index => $article) : ?>
			<li>                
				<a target="_self" href="<?php echo $this->url('news_article_details', $article); ?>" class=""><?php echo $article['title']; ?></a>
				<span class="gray"> - <?php echo date($this->CONFIG->timezone->date, strtotime($article['created_date'])); ?></span>
			</li>
			<?php endforeach; ?>
	    </ul>
	</div>
</div>
<?php endif; ?>